//package com.zmn.plat.task.job.part;
//
//import com.github.ltsopensource.core.domain.Action;
//import com.github.ltsopensource.core.domain.Job;
//import com.github.ltsopensource.spring.tasktracker.JobRunnerItem;
//import com.github.ltsopensource.spring.tasktracker.LTS;
//import com.github.ltsopensource.tasktracker.Result;
//import com.zmn.plat.es.EsPartSkuService;
//import com.zmn.plat.manager.dictionary.PartDict;
//import com.zmn.plat.manager.utils.TaskConsts;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import javax.annotation.Resource;
//
///**
// * @author DaiZhichao
// * @version v1.0
// * @since 2019/1/29 15:21
// * 类说明：可手动在LTS中新建任务
// * 用户参数:{"_taskShard":"rebuildIndex_part"}
// *
// */
//@LTS
//public class PartJob {
//
//    private final Logger logger = LoggerFactory.getLogger(this.getClass());
//
//    @Resource
//    private EsPartSkuService esPartSkuService;
//
//
//    @JobRunnerItem(shardValue = TaskConsts.TASK_ID_REBUILD_INDEX_PART)
//    public Result rebuildPartIndex(Job job) {
//        if (esPartSkuService.iniPartSku()) {
//            return new Result(Action.EXECUTE_SUCCESS, PartDict.HINT_PART_INDEX_INIT_SUCCESS);
//        } else {
//            return new Result(Action.EXECUTE_FAILED, PartDict.HINT_PART_OPERATING_FAILURE);
//        }
//    }
//}
